package com.xinqi.modules.prepare.prepare.dto.req;

import com.xinqi.modules.prepare.prepare.enums.PrepareMemberRoleEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 备课区成员-请求对象-修改
 *
 * @author: system
 * @date: 2023/03/19
 */
@Data
@Schema(description = "备课区成员-请求对象-修改")
public class PrepareMemberUpdateDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键", example = "10001", hidden = true)
    @NotNull(message = "备课区ID不能为空")
    private Long id;
    /**
     * 备课区id
     */
    @Schema(description = "备课区id", example = "10002")
    @NotNull(message = "备课区ID不能为空")
    private Long prepareId;
    /**
     * 角色，LEADER-组长；ADMIN-管理员；MEMBER-组员
     */
    @Schema(description = "角色，LEADER-组长；ADMIN-管理员；MEMBER-组员", example = "MEMBER")
    @NotNull(message = "用户角色不能为空")
    private PrepareMemberRoleEnum role;
}
